//
//  Today.m
//  BiuWeather
//
//  Created by 楼楚 on 16/3/12.
//  Copyright © 2016年 Chu Lou. All rights reserved.
//

#import "Today.h"

@implementation Today
- (id)initWithDictionary:(NSDictionary *)dic
{
    self = [super self];
    if (self) {
//     
        self.temp = [dic objectForKey:@"tmp"];
        self.humidity = [dic objectForKey:@"hum"];
        NSDictionary *dic1 = [dic objectForKey:@"wind"];
        NSDictionary *dic2 = [dic objectForKey:@"cond"];
        self.weatherCode = [dic2 objectForKey:@"code"];
        
        self.weatherTxt = [dic2  objectForKey:@"txt"];
        
        self.speed = [dic1 objectForKey:@"spd"];
        
        self.direction = [dic1 objectForKey:@"dir"];
        
        
    }
    return self;
}
@end
